//! 包装玩家操作的一系列接口
//!
//!
use the_world_game_core::log;

/// 启动游戏
#[no_mangle]
pub extern "C" fn start_game() -> bool {
    // 启动运行时
    if let Err(err) = crate::game::start_game() {
        log::error(err.to_string().as_str());
        return false;
    }
    true
}

/// 关闭游戏
#[no_mangle]
pub extern "C" fn stop_game() -> bool {
    if let Err(err) = crate::game::stop_game() {
        log::error(err.to_string().as_str());
        return false;
    }
    true
}

/// 玩家移动
#[no_mangle]
pub extern "C" fn player_move() {}

/// 玩家暂停
#[no_mangle]
pub extern "C" fn player_stop() {}

/// 进入新格子
#[no_mangle]
pub extern "C" fn player_enter_new_grid(){}



